
#include "quaternion_demo.h"
#include <iostream>
#include <QApplication>
#include <QLocale>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    std::cout << "Navigation:\n";
    std::cout << "  left button:           rotate around the target\n";
    std::cout << "  middle button:         zoom\n";
    std::cout << "  left button + ctrl     quake rotate (rotate around camera position)\n";
    std::cout << "  middle button + ctrl   walk (progress along camera's z direction)\n";
    std::cout << "  left button:           pan (translate in the XY camera's plane)\n\n";
    std::cout << "R : move the camera to initial position\n";
    std::cout << "A : start/stop animation\n";
    std::cout << "C : clear the animation\n";
    std::cout << "G : add a key frame\n";

    QuaternionDemo demo;
    demo.resize(600, 500);
    demo.show();
    return a.exec();
}
